package com.marvels.approve.credit.dao;

import com.github.pagehelper.Page;
import com.marvels.approve.credit.dto.EdcBurialPointMsgDTO;

public interface EdcBurialPointMsgDao {
    int deleteByPrimaryKey(Integer id);

    int insert(EdcBurialPointMsgDTO record);

    int insertSelective(EdcBurialPointMsgDTO record);

    EdcBurialPointMsgDTO selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(EdcBurialPointMsgDTO record);

    int updateByPrimaryKey(EdcBurialPointMsgDTO record);
    
    /**
     * 通过loanId查询短信列表
     * @param edcBurialPointMsgDTO
     * @return
     */
    Page<EdcBurialPointMsgDTO> selectByLoanId(EdcBurialPointMsgDTO edcBurialPointMsgDTO);
    
    /**
     * 查询记录数
     * @param loanId
     * @return
     */
    Integer selectCountByLoanId(String loanId);
}